<template>
	<view>
		<!-- pages/login/index.wxml -->
		<!-- <view class="header-close" :style="'padding-top:' + (statusBarHeight + 13) + 'px;'" @tap="close">关闭</view> -->
		<view class="head-block" v-if="weixin == 2">
			<view class="nav-title" :style="'top:10px'"></view>
			<!-- 返回 -->
			<view class="icon" @tap="goMy" :style="'top:6px'">
				<van-icon name="arrow-left" color="#333" size="45rpx" />
			</view>
		</view>
		<view class="sucess">
			<view class="sucess-container">
				<view class="sucess-img">
					<image src="../../static/assets/img/summit_01.png" mode="widthFix"></image>
				</view>
				<view class="sucess-text">登记完成</view>
				<view class="tips">{{time}}</view>
				<!-- <view class="tips1">我们会不断努力改进!</view> -->
				<!-- <view class="sucess-btn">
            <van-button type="info" bindtap="goBack">返回</van-button>
        </view> -->
			</view>
		</view>
	</view>
</template>

<script>
	// pages/setParkingsuccess/index.js
	const app = getApp();
	export default {
		data() {
			return {
				statusBarHeight: app.globalData.statusBarHeight,
				time: '',
				weixin: uni.getStorageSync('weixin')
			};
		}
		/**
		 * 生命周期函数--监听页面加载
		 */
		,
		onLoad: function(options) {
			var nowdate = new Date();
			var year = nowdate.getFullYear(),
				month = nowdate.getMonth() + 1,
				date = nowdate.getDate(),
				day = nowdate.getDay(),
				h = nowdate.getHours(),
				m = nowdate.getMinutes();
			m = m < 10 ? "0" + m : m
			h = h < 10 ? "0" + h : h
			this.time = year + "年" + month + "月" + date + "日" + h + ":" + m;
			console.log(this.time)
		},
		/**
		 * 生命周期函数--监听页面初次渲染完成
		 */
		onReady: function() {},
		/**
		 * 生命周期函数--监听页面显示
		 */
		onShow: function() {},
		/**
		 * 生命周期函数--监听页面隐藏
		 */
		onHide: function() {},
		/**
		 * 生命周期函数--监听页面卸载
		 */
		onUnload: function() {},
		/**
		 * 页面相关事件处理函数--监听用户下拉动作
		 */
		onPullDownRefresh: function() {},
		/**
		 * 页面上拉触底事件的处理函数
		 */
		// onShareAppMessage: function() {}
		onReachBottom: function() {},
		/**
		 * 用户点击右上角分享
		 */
		methods: {
			close() {
				uni.navigateTo({
					url: '../index/index'
				});
			},
			goMy() {
				uni.navigateBack();
			}
		}
	};
</script>
<style>
	@import './index.css';
</style>
